package com.uranus.common.bean.expection;


public   class BusinessException extends BaseServiceException {
    private static String DEFAULT_EXCEPTION_MESSAGE = "Business  error ";
    private Object detail;
    private int code;
    public BusinessException() {
        super(DEFAULT_EXCEPTION_MESSAGE);
    }

    public BusinessException(String message) {
        super(message);
    }
    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }
    public BusinessException(String message, Object detail) {
        super(message);
        this.detail = detail;
    }
//    public BusinessException(String message, Object detail, int code) {
//        super(message);
//        this.detail = detail;
//        this.code = code;
//    }
//
//    public int getCode() {
//        return code;
//    }
}
